how to find hcf of 2 numbers in java